<%--
  Created by IntelliJ IDEA.
  User: user
  Date: 2024/6/4
  Time: 16:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
这里是innerObject1.jsp
<%--将数据存储在页面域中，只作用于当前页面--%>
<%pageContext.setAttribute("page","pageContext");
Object pageData=pageContext.getAttribute("page");
%>
<%=pageData%>
<%--将数据存储在请求域中--%>
<%request.setAttribute("request","request");
%>
<%--将数据存储在会话域中--%>
<%session.setAttribute("session","session");
%>
<%--将数据存储在应用域中--%>
<%application.setAttribute("application","application");
%>


<%--request.getRequestDispatcher("页面路径").forward   转发--%>
<%-- response.sendRedirect("innerObject2.jsp");重定向--%>
<%
    response.sendRedirect("innerObject2.jsp");
//    request.getRequestDispatcher("innerObject2.jsp").forward(request,response);
%>


</body>
</html>
